package com.gym.system.appointment.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gym.common.annotation.Excel;
import com.gym.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 预约对象 gym_appointment
 *
 * @author administrator
 * @date 2021-04-11
 */
public class GymAppointment extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     * 预约人
     */
    @Excel(name = "预约人")
    private String appointUser;

    /**
     * 预约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAppointUser(String appointUser) {
        this.appointUser = appointUser;
    }

    public String getAppointUser() {
        return appointUser;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("appointUser", getAppointUser())
                .append("startTime", getStartTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
